package com.hp.entity;

public class Pet {
    private int id;
    private String pname;
    private String birthdate;
    private String photo;
    private int ownerid;
    private int pid;
    private User user;
    private Speciality speciality;

    public Pet() {
    }

    public Pet(int id, String pname, String birthdate, String photo, int ownerid, int pid, User user, Speciality speciality) {
        this.id = id;
        this.pname = pname;
        this.birthdate = birthdate;
        this.photo = photo;
        this.ownerid = ownerid;
        this.pid = pid;
        this.user = user;
        this.speciality = speciality;
    }

    @Override
    public String toString() {
        return "Pet{" +
                "id=" + id +
                ", pname='" + pname + '\'' +
                ", birthdate='" + birthdate + '\'' +
                ", photo='" + photo + '\'' +
                ", ownerid=" + ownerid +
                ", pid=" + pid +
                ", user=" + user +
                ", speciality=" + speciality +
                '}';
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getPname() {
        return pname;
    }

    public void setPname(String pname) {
        this.pname = pname;
    }

    public String getBirthdate() {
        return birthdate;
    }

    public void setBirthdate(String birthdate) {
        this.birthdate = birthdate;
    }

    public String getPhoto() {
        return photo;
    }

    public void setPhoto(String photo) {
        this.photo = photo;
    }

    public int getOwnerid() {
        return ownerid;
    }

    public void setOwnerid(int ownerid) {
        this.ownerid = ownerid;
    }

    public int getPid() {
        return pid;
    }

    public void setPid(int pid) {
        this.pid = pid;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Speciality getSpeciality() {
        return speciality;
    }

    public void setSpeciality(Speciality speciality) {
        this.speciality = speciality;
    }
}
